package com.domain.bean.music;

import lombok.Data;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:音乐评论
 * Author : wangyu
 * Date: 2018-03-02
 * Time: 15:48
 */
@Data
@Entity
@Table(name = "music_comment")
public class MusicComment implements Serializable{
    private static final long serialVersionUID = 525241650199880850L;
    @Column(unique = true)
    private String commentId;//评论ID
    private String userCode;//评论用户CODE
    private String userName;//评论用户name
    private Date cmtDate;//评论日期
    private Integer likedCount;//点赞数
    @Column(length = 2000)
    private String content;//内容(最大140个汉字)
    private String type;//类型

    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Long id;//ID
    @Column(name = "create_by",length = 32)
    private String createBy;//创建人
    @Column(name = "create_date")
    private Date createDate;//创建时间
    @Column(name = "update_by",length = 32)
    private String updateBy;//更新人
    @Column(name = "update_date")
    private Date updateDate;//更新时间

}
